package com.ibeetl.bbs;

import com.ibeetl.bbs.dao.BbsPostDao;
import com.ibeetl.bbs.dao.BbsTopicDao;
import com.ibeetl.bbs.model.BbsTopic;
import lombok.Data;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import java.util.Timer;

@Service
public class SpiderJob  {

    @Autowired
    private SpiderJobDetail spiderJobDetail;



    private  Timer timer = new Timer();;
    @PostConstruct
    public void init(){
        timer.schedule(spiderJobDetail,2000L,1000*3600L);


    }





}
